import service from '@/utils/request'
// eslint-disable-next-line no-unused-vars
const { httpPostForm, httpPost, httpGet } = service
//=================分包合同申请====================
const request = {
    //新增分包合同变更申请信息/
    createInfo (params) {
        return httpPost({
            url: '/subcontract/subpackageChangeApply/createInfo',
            params: params,
        })
    },
    //查询分包合同变更申请基本信息/
    getInfo (id) {
        return httpGet({
            url: '/subcontract/subpackageChangeApply/getInfo',
            params: {
                billId: id,
            },
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //删除基本信息
    deleteInfo (id) {
        return httpGet({
            url: '/subcontract/subpackageChangeApply/deleteInfo',
            params: {
                billId: id,
            },
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //新增(修改)主体信息
    createMainstay (params) {
        return httpPost({
            url: '/subcontract/subpackageChangeApply/createMainstay',
            params: params,
        })
    },
    //查询主体信息/
    getMainstay (id) {
        return httpGet({
            url: '/subcontract/subpackageChangeApply/getMainstay',
            params: {
                billId: id,
            },
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //新增、修改、删除保证金/
    createBond (params) {
        return httpPost({
            url: '/subcontract/subpackageChangeApply/createBond',
            params: params,
        })
    },
    //查询保证金/
    getBond (params) {
        return httpGet({
            url: '/subcontract/subpackageChangeApply/getBond',
            params
        })
    },
    //删除保证金
    deleteBond (billIds) {
        return httpPost({
            url: '/subcontract/subpackageChangeApply/deleteBond',
            params: billIds
        })
    },
    //合同清单查询
    findByContractList (id) {
        return httpGet({
            url: `/contract/ctSubContractDrawUp/findByContractList/${id}`,
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //甲供信息查询
    findByAlist (id) {
        return httpGet({
            url: `/contract/ctSubContractDrawUp/findByAlist/${id}`,
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //保证金查询
    findById (id) {
        return httpGet({
            url: `/contract/ctSubContractDrawUp/findById/${id}`,
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //合同条款查询
    findByClause (id) {
        return httpGet({
            url: `/contract/ctSubContractDrawUp/findByClause/${id}`,
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //附件信息查询
    findByEnclosure (id) {
        return httpGet({
            url: `/contract/ctSubContractDrawUp/findByEnclosure/${id}`,
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //正式文件查询
    findByFormalContractDocuments (id) {
        return httpGet({
            url: `/contract/ctSubContractDrawUp/findByFormalContractDocuments/${id}`,
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //审核历史查询
    findByAuditHistory (id) {
        return httpGet({
            url: `/contract/ctSubContractDrawUp/findByAuditHistory/${id}`,
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //签订记录查询
    findBySigningRecord (params) {
        return httpGet({
            url: '/subcontract/subpackageChangeSign/getSignRecord',
            params
        })
    },
    //变更记录查询
    findByAlter (id) {
        return httpGet({
            url: `/contract/ctSubContractDrawUp/findByAlter/${id}`,
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //结算台账查询
    findBySettlementAccount (id) {
        return httpGet({
            url: `/contract/ctSubContractDrawUp/findBySettlementAccount/${id}`,
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //合同终止查询
    findByTerminationRecord (id) {
        return httpGet({
            url: `/contract/ctSubContractDrawUp/findByTerminationRecord/${id}`,
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //保存清单/
    saveContractList (params) {
        return httpPost({
            url: '/subcontract/subpackageChangeApply/saveList',
            params
        })
    },
    //懒加载清单/
    getContractList (params) {
        return httpGet({
            url: '/subcontract/subpackageChangeApply/getList',
            params
        })
    },
    //模糊查询清单/
    searchContractList (params) {
        return httpGet({
            url: '/subcontract/subpackageChangeApply/getListByKey',
            params
        })
    },
    //加载所有清单
    contractListAll (params) {
        return httpGet({
            url: '/subcontract/subpackageChangeApply/getALLList',
            params
        })
    },
    //获取物资理论计划中的物资数据
    getMaterialPlanDtl (params) {
        return httpPost({
            url: '/project/mtp/getMaterialPlanDtl',
            params
        })
    },
    //查询甲供清单物资清单/
    getSupplyMaterialList (params) {
        return httpGet({
            url: '/subcontract/subpackageChangeApply/getSupplyMaterialList',
            params
        })
    },
    //新增甲供清单物资清单
    createSupplyMaterialList (params) {
        return httpPost({
            url: '/subcontract/subpackageChangeApply/createSupplyMaterialList',
            params
        })
    },
    //获取甲供清单占比
    getListProportion (params) {
        return httpPost({
            url: '/subcontract/subpackageChangeApply/getListProportion',
            params
        })
    },
    //新增或修改甲供清单设备清单/
    createEquipmentList (params) {
        return httpPost({
            url: '/subcontract/subpackageChangeApply/createEquipmentList',
            params
        })
    },
    //查询甲供清单设备清单/
    getEquipmentList (params) {
        return httpGet({
            url: '/subcontract/subpackageChangeApply/getEquipmentList',
            params
        })
    },
    //获取清单修改记录
    getListUpdateRecord (params) {
        return httpGet({
            url: '/subcontract/subpackageChangeApply/getListUpdateRecord',
            params
        })
    },
    //获取甲供清单设备清单修改记录/
    getEquipmentListUpdateRecord (params) {
        return httpGet({
            url: '/subcontract/subpackageChangeApply/getEquipmentListUpdateRecord',
            params
        })
    },
    //获取甲供清单物资清单修改记录/
    getMaterialListUpdateRecord (params) {
        return httpGet({
            url: '/subcontract/subpackageChangeApply/getMaterialListUpdateRecord',
            params
        })
    },
}

export default request
